﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Framework.Common.Common;
namespace WebSite.WebServer
{
    public partial class AjaxOnlineUserList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataView dv = ((DataTable)Application["onLineUser"]).DefaultView;
            string Rjson = @"{""Rows"":[],""Total"":""0""}";
            dv.RowFilter = "RefreshTime > '" + DateTime.Now.AddMinutes(0 - 1) + "'";
          if (dv != null)
            {

               if(dv !=null)
                   Rjson = @"{""Rows"":" + dv.Table.ToJson() + @",""Total"":""" + dv.Count + @"""}";
            }
            Response.Write(Rjson);
        }
    }
}